package com.basics.organization.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.basics.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分组权限
 * </p>
 *
 * @author WangWei
 * @since 2025-03-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cy_organization_permission")
@ApiModel(value="CyOrganizationPermission对象", description="分组权限")
public class CyOrganizationPermission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "组织分组ID")
    private String id;

    @ApiModelProperty(value = "分组ID")
    private String groupId;

    @ApiModelProperty(value = "权限(ALLOW_VIEW允许查看他人详情)")
    private String permission;

    public CyOrganizationPermission(){

    }

    public CyOrganizationPermission(String groupId,String permission){
        this.groupId = groupId;
        this.permission = permission;
    }
}
